<template>
  <transition name="slide">
  <div class="myTest">
    <div class="scroll" ref="wrapper">
    <ul class="test_ul">
      <router-link tag="li" class="test_li module" to="/test_rule">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>

          <div class="tag_grp">
            <span class="tag major">专业</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </router-link>
      <li class="test_li module">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>

          <div class="tag_grp">
            <span class="tag interest">趣味</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </li>
      <li class="test_li module">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>


          <div class="tag_grp">
            <span class="tag interest">趣味</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </li>
      <li class="test_li module">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>


          <div class="tag_grp">
            <span class="tag major">专业</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </li>
      <li class="test_li module">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>
          <div class="tag_grp">
            <span class="tag major">专业</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </li>
      <li class="test_li module">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>


          <div class="tag_grp">
            <span class="tag interest">趣味</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </li>
      <li class="test_li module">
        <div class="img_grp ">
          <img src="" alt="">
          <div class="test_num">
            1202人已测
          </div>
        </div>
        <div class="content_grp">
          <div class="article_title">
            孩子的职业规划怎么做？这样做才对
          </div>

          <div class="tag_grp">
            <span class="tag major">专业</span>
            <span class="tag">性格测试</span>
          </div>
        </div>
      </li>
    </ul>
    </div>
  </div>
  </transition>
</template>

<script>
  import Bscroll from "better-scroll"

  export default {
    watch: {

    },
    data() {
      return {


      }
    },
    mounted(){
      this.scroll = new Bscroll(this.$refs.wrapper,{
        click:true,
      })
    },
    methods: {

    },
    components: {

    },
    computed: {

    }

  }

</script>

<style scoped>
  .myTest{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background-color: #f5f4f7;
  }
  .scroll {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
  }

  .test_ul{
    width: 100%;
    padding:20px 20px 0 20px;
    margin-bottom: 116px;
  }
  .test_li {
    height: 175px;
    padding: 30px 20px;
    border-top: solid 1px #ededef;
  }
  .test_li .img_grp {
    width: 158px;
    height: 100px;
    border: solid 1px #ededef;
    margin-right: 30px;
    float: left;
  }
  .content_grp {
    width: auto;
    height: 101px;
    position: relative;
  }
  .img_grp .test_num {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 20px;

    width: 100%;
    height: 34px;
    opacity: 0.4;
    line-height: 36px;
    background: black;
    color: white;
    text-align: center;
  }

  .test_li .article_title{
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    overflow: hidden;
    width: 430px;
    font-size: 30px;
  }
  .tag_grp{
    height: 40px;
    margin-top: 12px;
  }
  .tag{
    font-size: 24px;
    border-radius: 20px;
    border: solid 1px #c5c5c7;
    padding: 6px 12px;
    color: #c5c5c7;
    margin-right: 10px;

  }
  .major{
    background: #059692;
    color: white;
    border-color: #059692;
  }
  .interest{
    border-color: #059692;
    color: #059692;
  }
</style>
